package com.pay.service;

import com.alipay.api.AlipayApiException;
import com.pay.model.Goods;

import java.util.List;
import java.util.Map;

/*****************************************
 *                                       *
 *  @dookay.com Internet make it happen *
 *  ----------- -----------------------  *
 *  dddd  ddddd Internet make it happen  *
 *  o   o     o Internet make it happen  *
 *  k    k    k Internet make it happen  *
 *  a   a     a Internet make it happen  *
 *  yyyy  yyyyy Internet make it happen  *
 *  ----------- -----------------------  *
 *  @dookay.com Internet make it happen *
 *                                       *
 *  面向对象面向君，不负代码不负卿       *
 ****************************************/


public interface GoodsService {

    /**
     * 根据商品id查找对应商品
     * @param id
     * @return
     */
    Goods findGoodsById(Integer id);

    /**
     *
     *
     * @return
     */
    List<Goods> findListGoods();


    /**
     * 花艺活动用户支付
     *
     * @param token
     * @param articleId
     * @param name
     * @param mobile
     * @param advancePaymentMoney
     * @return
     */
    Map<String, Object> payUserApplyByUsernameAndArticleId(String payType, String token, Integer articleId, String name, String mobile, String advancePaymentMoney) throws AlipayApiException, Exception;


}
